Sense interview question

Write a function that takes a callback function and returns a curried version kt callback function. eg: for a general sum function, our function should return curried version so that it can be called like: sum(1)(2)(3) like this.