Amazon interview question

They asked Longest Palindromic Substring and Rotting Oranges.