Niantic Interview Question

n-ary tree question (data structures and algorithms)