Pregunta de entrevista de Thermo Fisher Scientific

Solving a problem with a recursion