Nanovest interview question

Please solve this question (fizzbuzz) and explain your solution to us