naive solution to Palindrome Number