Compute vertical order of a BST | Meta Interview Question