Datadog interview question

Dfs, hash table/ dictionary, tree traversal.