Infosys Interview Question

Write a program to compute palindromic substrings in a string