American Express Interview Question

How to find the longest palindromic substring