Datadog Interview Question

Traverse and apply some operations on a tree-like data structure representing a file system.