Solved isIntPalindrome problem