Solution to Palindrome Number