Top View Binary Tree Leetcode Question