Given a string s, return the number of distinct non-empty palindromic subsequences of s, modulo 10^9+7. Two subsequences are different if there is some index at which they differ in character.
Input: A quoted string s.
Output: Integer — count mod 10^9+7.
Input: "bccb"
Output: 6
Explanation: b,c,cc,bb,bcb,bccb.Input: "aaa"
Output: 3
Explanation: a,aa,aaa.Input: "abc"
Output: 3
Explanation: a,b,c.1<=s.length<=1000s contains a-d