Amazon interview question

Print binary tree side view.