Barclays Interview Question

Implement debounce and throtle with their usage