Pregunta de entrevista de Meta

Implement debounce and throttle in JavaScript