Implement solve(callArgs) that demonstrates the once higher-order
function: a wrapper that ensures the underlying function runs at most once
and returns the same result for every subsequent call.
callArgs is an array of argument lists. The first call invokes the
underlying function; all subsequent calls return the cached first result.
The underlying function simply returns the sum of its arguments.
Examplesolve([[1,2],[3,4],[5]]) → [3, 3, 3]
(first call returns 1+2=3; subsequent calls also return 3)
Sample tests