Count Palindromic Substrings Leetcode 754 Election