See my code once TLE

can anyone tell me why it is giving TLE for 2 test cases

Please save your code on ide.codingblocks.com and then share its link.

Dry run your code for this case:
3
9 0 1

Output should be false but your code is giving an error.

that’s what i am asking.
tell where is my error

Your logic is going wrong from line 14 to 21 in the while loop. When the input is not palindrome, your while loop will not terminate.
Check this https://ide.codingblocks.com/s/225798