Palindromic substrings

CodeChef - STRPALIN