Amazon Interview Question

Print top view of binary tree.