Techolution Interview Question

Explain and implement debouncing and throttling.