Count Palindromic Substrings
medium
1. You are given a string str. 2. You are required to print the count of palindromic substrings in string str.
Constraints
0 <= str.length <= 10
Format
Input
A string str
Output
A number representing the count of palindromic substrings in string str.
Example
Sample Input
abccbc
Sample Output
9
Question Video