Macy's interview question

Longest palindromic substring from a string