longestPalindromeSequence