Apple interview question

Longest palindrome in a substring without using recursion