Astranis interview question

How do you debounce a button in a system?