Regarding my solution

This is my solution link for the question.
https://www.codechef.com/viewsolution/15021131

please anyone help to find where it fails.

What’s your problem link? Please update the question.

We can see the problem from the link he gave :confused: