The problem is that you have to define the problem enough to avoid the fact that it's trivial to output the string "1,2,Fizz,4,Buzz,6,......" and fulfill the assignment. You can, in fact, output "$1,$2,Fizz,$4,Buzz,$6..." where $ is any prefix itself divisible by 15 (there are other templates for the other situations) but it clearly does repeat endlessly.