Leetcode Check Palindrome In Python Program