Pergunta de entrevista da empresa Mamsys

Count the number of palindromic substrings in a given string.