Amazon Interview Question

Traversing a tree from left to right