isPalindrome problem

sir what is the mistake in this code

@qudsiya its fine just take input in form of integer array