Pregunta de entrevista de iRhythm Technologies

How would you detect a button press using a microcontroller?