Duco Interview Question

I was asked to code a debounce function