Pregunta de entrevista de National Instruments

They asked me on recursive method.