Write a program that prints numbers from 1 to n, but for multiples of 3 print Fizz, for multiples of 5 print Buzz, and for multiples of both print FizzBuzz.
Implement the function below for grading. Return a list of strings instead of printing directly. For each integer from 1 through n, apply the combined multiple-of-3-and-5 rule before the individual rules.
Function signature: def fizz_buzz(n):
Input is a positive integer n. The output is a list containing exactly n strings.
def fizz_buzz(n):