text: Function to check if a number is Palindrome or not here i is the starting index and j is the last index of the subarray
code: public static boolean palindrome ( int [ ] a , int i , int j ) { while ( i < j ) {