input: Write a function to replace elements in an array according to the following rules: if the element is divisible by 3, replace it with "Fizz"; if the element is divisible by 5, replace it with "Buzz"; if the element is divisible by both 3 and 5, replace it with "FizzBuzz". If the array is empty, return an empty array.
  def fizz_buzz(arr):
      new_arr = []
      for element in arr:
          if element % 3 == 0 and element % 5 == 0:
              new_arr.append("FizzBuzz")
          elif element % 3 == 0:
              new_arr.append("Fizz")
          elif element % 5 == 0:
              new_arr.append("Buzz")
          else:
              new_arr.append(element)
      return new_arr
  
  assert fizz_buzz([2, 3, 4, 5, 6, 15])==[2, "Fizz", 4, "Buzz", "Fizz", "FizzBuzz"]
  assert fizz_buzz([10, 9, 20, 12, 15, 1])==["Buzz", "Fizz", "Buzz", "Fizz", "FizzBuzz", 1]
  assert fizz_buzz([])==[]
  assert fizz_buzz([3, 5, 7, 15])==["Fizz", "Buzz", 7, "FizzBuzz"]
  assert fizz_buzz([2, 3, 5, 1, 6, 25])==[2, "Fizz", "Buzz", 1, "Fizz", "Buzz"]
output: def fizz_buzz(arr):
      new_arr = []
      for element in arr:
          if element % 3 == 0 and element % 5 == 0:
              new_arr.append("FizzBuzz")
          elif element % 3 == 0:
              new_arr.append("Fizz")
          elif element % 5 == 0:
              new_arr.append("Buzz")
          else:
              new_arr.append(element)
      return new_arr