Count Palindromic Substrings Leetcode Javascript Interview