Reduce Higher Order Function