Code is niether compiling nor getting submited

Code is niether compiling nor getting submited

Please help!

you are provided an character not a string so take the input character only
Corrected code