Google interview question

Implement top view of trees.