Array.prototype.reduce
Implement the Array.prototype.reduce() method which executes a reducer function on each element.