Count Palindromic Substring Leetcode