Pergunta de entrevista da empresa Bloomberg

Print the nodes of a binary tree level by level