Leetcode Palindrome Number Python Programming