Binary Tree Top View Leetcode Question