Pergunta de entrevista da empresa Thermo Fisher Scientific

Solving a problem with a recursion