Domanda di colloquio di Duco

I was asked to code a debounce function