Leetcode Palindrome Number Solution