update solution for leetcode Palindrome Number