Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use the fact that string contains only 2 characters.
Are subsequences composed of only one type of letter always palindrome strings ?
Solve with full IDE support and test cases