sum(cube) is now equivalent to sumOfCube(), the summation function we defined previously to sum the cubes of integers.
sum(cube) is executed first and then this basically returns another function which is applied to the second parameter list (1,5). Just as we did in the previous lesson.
Association of functions is towards the left. Hence, sub(cube)(1,5) == (sum(cube))(1,5)