Qualtrics interview question

Longest palindrome in a string, merging intervals