Pergunta de entrevista da empresa Niantic

n-ary tree question (data structures and algorithms)