Pergunta de entrevista da empresa Habana Labs

A problem with recursive solution