What is wrong in this code

hello @shdanish1508
ur logic is correct but u r not taking input as per input format.
u need to read n which is number of elements ,
then n numbers (array elements)
now u need to apply ur logic to check whether this array is palindrome or not