What is the approach to solve this problem?

Take as input S, a string. Write a program that gives the count of substrings of this string which are palindromes and Print the ans.

Hi @nitinchauhan0808_be04315530401452, refer