Pergunta de entrevista da empresa Anonymous

Fizzbuzz leetcode quesion, medium difficulty level.