Datadog interview question

String manipulation problems