Leetcode Palindrome Number Python Programs With Logics