Question 2 of the final exam

Removing post as it describes a solution.

Please do not post answers to questions in the final, or solutions to homeworks.

Regards,
Daniel

“$sum” is the accumulator.
See the documentation regarding this operator.

Regards,
Daniel.