Pregunta de entrevista de Duco

I was asked to code a debounce function