Duo Security Interview Question

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