Cogito Group interview question

Coding question was the classic FizzBuzz