Astranis Interview Question

How do you debounce a button in a system?