Accumulate using an iterative process
Accumulate using a recursive process