Given a string `s`, return the number of palindromic substrings in it. A string is a palindrome when it reads the same backward as forward. A substring is a contiguous sequence of characters within the string.
Expand Around Center
A palindrome can have an odd length (one center character) or an even length (two center characters). For every possible center in the string (there are `2n - 1`), we can 'expand' outwards as long as the characters match and we are within boundaries. Each step of a successful expansion counts as a new palindromic substring.