WA in Impressing Chefina

https://www.codechef.com/viewsolution/33313648

This is my code for the following problem can anybody explain me which test case i am missing.
please help me. your help matters!!!

please provide test cases it is failing!!!