Python Code For String Palindrome Leetcode Problem 9