Microsoft Interview Question

write a program to print the top view of a binary tree.