Mastercard interview question

fizz buzz algorithm