Can anyone tell why it is showing WA even after testing many test cases

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