RBC interview question

fizz buzz programming question for technical screening