Datadog interview question

It was not a Leetcode-type algorithm question, but more of a simulated data processing exercise.