Using Manacher algorithm to get the longest palindrome string