Oncospace interview question

Leetcode problem: fizz buzz (easy)