Leetcode Palindrome Number Python