Amazon interview question

Top View of a binary tree.