[longestPalindrome] O(n^2) AC~