Palindrome String Program In Leetcode Python