Given a string, the task is to return the length of its longest possible chunked palindrome. It means a palindrome formed by substrings. For better understanding, look at the examples below.
"ghiabcdefhelloadamhelloabcdefghi" should return
7. The palindrome is
"merchant" should return
1. The palindrome is