GetYourGuide interview question

String manipulation related coding question.