Top View Binary Tree Leetcode Problem