Pergunta de entrevista da empresa Collabera Digital

Asked to solve recursion problem