Unable to find corner case!

I tried my best to find the corner case in which my code failing… Still I’m unable to find the case. Please help me!

Link of Submission - CodeChef: Practical coding for everyone

Check the following accepted update to your solution.

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

Hey… Thank you so much