function largestOfFour(arr) { return arr.map(function(group) { return group.reduce(function(prev, current) { return current > prev ? current : prev; }); }); }