Longest Chunked Palindrome Decomposition
Match the shortest equal prefix and suffix, peel them off as two chunks, and repeat until the middle is left as one chunk.
Match the shortest equal prefix and suffix, peel them off as two chunks, and repeat until the middle is left as one chunk.