Duo Security interview question

Write a script that finds the longest palindrome in a given string.