Amazon interview question

iterator of a binary tree.