Datadog interview question

Some coding exercises, nothing too difficult.