Medium
Given a string s, return the number of palindromic substrings in it. Substrings at different start or end positions count separately even if identical.
Input: s = "abc" Output: 3 Explanation: The three single characters.
Input: s = "aaa" Output: 6