Leetcode Find All Palindrome Substrings In Python