Visa Inc. Interview Question

Find the number of Palindromic substrings