Blue Yonder interview question

Write a program for finding longest palindrome in a string