Flexport Interview Question

It was a generic tree traversal programming question