Question d’entretien chez Apple

Longest palindrome in a substring without using recursion