Domanda di colloquio di iRhythm Technologies

How would you detect a button press using a microcontroller?