updated Palindrome Number solution