Toradex interview question

Explain Keyboard debouncing logic?