Pergunta de entrevista da empresa Ancestry

Connect nodes of a binary tree at each levels