GetYourGuide Interview Question

String manipulation related coding question.