Count Palindromic Subsequences
hard
1. You are given a string str. 2. You are required to print the count of palindromic subsequences in string str.
Constraints
0 <= str.length <= 10
Format
Input
A string str
Output
A number representing the count of palindromic subsequences in string str.
Example
Sample Input
ccbbgd
Sample Output
8
Question Video