Datadog Interview Question

Quite interesting take-home task, typical coding interview