Pregunta de entrevista de The BHW Group

Basic data structure questions, recursion problem