Debounce

Create a function that delays the execution of another function. When the debounced function is called multiple times in quick succession, only the last call should trigger the actual function execution after the wait period has elapsed without any more calls.

Examples
Input: [["log",100],"hello"]
Output: "function"
Hints

Debounce

Implement a function to limit how many times a function can be executed by delaying execution until after a specified delay.