Airbnb interview question

String manipulation. One of Leetcode top 10 questions