Datadog Interview Question

Dfs, hash table/ dictionary, tree traversal.