Search
The function accumulatingArray should return an array of the accumulating sum.
accumulatingArray
For example: