Find the longest palindrome (Naive & Improve Approaches)