WA in RECNDNUM

https://www.codechef.com/viewsolution/32389834
this my soluton for this problem

i think that my solution can pass all the test case. but it is showing WA.

Can anybody help me.