RBC Interview Question

fizz buzz programming question for technical screening