Pergunta de entrevista da empresa Cogito Group

Coding question was the classic FizzBuzz