Datadog interview question

Classic algorithmics questions using data structures