rotation problom: getting W.A.

I.m getting W.A. Plz do help…
problem link: ROTATION Problem - CodeChef
solution: CodeChef: Practical coding for everyone

Your logic of problem is i think correct but you have taken wrong character input, you can use “cin” instead.