Valid Palindrome Leetcode Python