Expedia Group interview question

String manipulation