Question d’entretien chez Bloomberg

Given a tree, print elements in vertical level order