Flexport interview question

It was a generic tree traversal programming question