isPalindrome problem

sir but it is not giving the correct output

actually question is for integer array but still

instead of a[n] use char a[10000];
because at compile time we don’t known n

and this will not pass your testcase on hacker block
as nos are given in different lines