Meta Interview Question

Traverse a tree