Amazon interview question

Top view of Binary Tree