determine whether an integer is a palindrome without extra space.