Why it is giving WA while my logic is correct plzz help ASAP

Plzz anyone help in this qn… I am getting wa …

with my solution
https://www.codechef.com/viewsolution/66242045