Find the longest palindrome

O(n * n)