Tag - longest palindrome algorithm