Count Palindromic Substrings Leetcode Playground C