Datadog interview question

Study your algorithms/data structures, typical interview stuff