Microsoft Interview Question

Implement a debounce function with javascript