Wingify Interview Question

Implement debounce function in Javascript