WA in ORANDCON

https://www.codechef.com/viewsolution/57990613
Can someone tell what’s wrong with my code