Leetcode Palindrome Number Python Program