Producto acumulado
Crea una función que reciba un arreglo y devuelva un arreglo del producto acumulado.
Ejemplos
accumulatingProduct([1, 2, 3, 4]) ➞ [1, 2, 6, 24]
// [1, 2, 6, 24] se puede escribir como [1, 1 x 2, 1 x 2 x 3, 1 x 2 x 3 x 4]
accumulatingProduct([1, 5, 7]) ➞ [1, 5, 35]
accumulatingProduct([1, 0, 1, 0]) ➞ [1, 0, 0, 0]
accumulatingProduct([]) ➞ []Notas
Un arreglo vacío debe devolver un arreglo vacío [].