Implement currying for infinite sum: sum(10)(20)(30)() === 60 · InterviewLane