Block interview question

implement an inorder tree iterator in java