Return the longest palindromic contiguous substring of s. If multiple answers have the same maximum length, return the one with the smallest starting index.
Input / output
s: stringExamples
"cbbd" returns "bb"."abaxyzzyxf" returns "xyzzyx".Constraints
1 <= s.length <= 1,000Follow-up How do expand-around-center, dynamic programming, and Manacher's algorithm compare?