Datadog interview question

Standard stuff. LC easy and medium