LinkedIn Interview Question

Coding problem to using tree traversal and recursion