Airbnb interview question

Palindrome Pairs, text justification