Bloomberg Interview Question

Given a tree, print elements in vertical level order