input: Write a function to transform an array based on specific rules: elements divisible by 3 should be replaced with "Fizz", elements divisible by 5 should be replaced with "Buzz", and elements divisible by both 3 and 5 should be replaced with "FizzBuzz". The function should return the transformed 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([1, 2, 3, 10])==[1, 2, "Fizz", "Buzz"]
  assert fizz_buzz([7, 8, 11, 13])==[7, 8, 11, 13]
  assert 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