Function.prototype.call

Implement the Function.prototype.call() function to call a function with a given 'this' context and pass arguments individually.

Examples
Input: ["(x) => x + 1","{ val: 10 }",5]
Output: 6
Hints

Function.prototype.call

Implement the Function.prototype.call() function to call a function with a given 'this'.