MSCI interview question

How would you solve the top view of a binary tree problem?