Pregunta de entrevista de Rec Room

Problem on data structures and recursion