Implement curry(fn) that returns a curried version of fn. The curried
function collects arguments one at a time and calls fn once it has
received all of them.
solve(ops) drives your implementation where each op is 'call' (partial
apply one more arg) or 'exec' (get accumulated result).
Example — currying an add3 function
const add3 = curry((a, b, c) => a + b + c);
add3(1)(2)(3) // 6
add3(1, 2)(3) // 6
add3(1)(2, 3) // 6Sample tests