Count Palindromic Substrings Leetcode Solutions C