Concept Flow - Array reduce function
Start with array
Initialize accumulator with initial value
Take first element
Apply callback(accumulator, element)
Update accumulator with callback result
More elements?
Yes→Take next element
The reduce function starts with an initial value and applies a callback to combine each array element into a single result.