WA in RECNDNUM

i don’t know why it is giving WA.
this my soluton for this problem.
https://www.codechef.com/viewsolution/32472257
please help!!!

link for the question