Implement BST vertical traversal and list conversion | Meta Interview Question