Conversion of String to Char

What do you mean by the code is wrong?