Adobe Interview Question

Boundary Traversal in a tree