Pergunta de entrevista da empresa Lutron Electronics

Describe how to debounce a button in software.