Count Palindromic Substrings Leetcode Playground Python