solve palindrome number