Amazon interview question

Traversing a tree from left to right