Nutanix Interview Question

Given a string s, return the number of palindromic substrings in it.