LinkedIn interview question

Implement a tree traversal with some data extraction