palindromes

CF

Sub Palindromes

Given a string S, the program must print the count of sub palindromes(with a minimum length of two characters) in the string S. Example 1:…