Lower upper problem of string

I am getting some error while compilation of code

Hello,
Please share your code as well so that I can review.