Datadog Interview Question

String manipulation problems