Datadog interview question

Basic and advance datastructure and algorithms.