Palindrome Number Leetcode Solution In Python List