Phase 2: Intermediate • Module 1: Advanced Function Patterns
Implement a debounce function that comes with a cancel method to cancel delayed invocations and a flush method to immediately invoke them