Hulu Interview Question

efficient way to traverse through a given tree structure