Infosys interview question

Write a program to compute palindromic substrings in a string