Apple Interview Question

Solve fizz buzz programming test.