print “Fizz” — If the number is a multiple of 5, print “Buzz” — If the number is a multiple of 3 and 5, print “FizzBuzz” — Otherwise, just print the number
Shape(sides: 3), Shape(sides: 15)].fizzBuzz([(3, “Fizz”), (5, “Buzz”)]) // [“1”, “Fizz”, “FizzBuzz”] The mechanics of doing the actual FizzBuzz has been removed from the configuration of the FizzBuzz.