Pergunta de entrevista da empresa Tuenti

How would you print a given tree in level order (ie, root, all level2 items, all level 3 items....)