Leetcode Palindrome Number Python Code