Palindrome Number Leetcode Python