Pergunta de entrevista da empresa Blackbaud

How to find the longest substring in a string that is a palindrome