Chapter 6: functions

Task 2

Sum with closures

Write a function sum that looks like this sum(a)(b) = a+b.