Write a function to find the longest palindromic substring in a given string.
HardProblem Statement
Write a function to find the longest palindromic substring in a given string.
Sample Input
abccccdd
Sample Output
cccc
Limits
Time: 2s · Memory: 256 MB