WA in ISHVALA

I don’t understand why my code is showing wrong answer, i ran it for many test cases and it runs fine. CodeChef: Practical coding for everyone