Deloitte interview question

Fizz Buzz programming question