Pregunta de entrevista de Bloomberg

Given a tree, print elements in vertical level order