Can anyone tell for which test case my program is getting wrong answer

https://www.codechef.com/submit/CHEFAPAR
https://www.codechef.com/viewsolution/25420947