Datadog interview question

Quite interesting take-home task, typical coding interview