My answer is correct still getting WA

didnt get where I am wrong

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