American Express interview question

How to find the longest palindromic substring