Wingify interview question

Implement debounce function in Javascript