Techolution interview question

Explain and implement debouncing and throttling.