My code went for TLE

https://ide.codingblocks.com/s/286435 please help me correct my code

Your code must be running into an infinite loop somewhere.
have you corrected your code now?

yeah, I know that but I am unable to find where I went wrong

any reply???

@namanmittal0007
Check now

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.