Sollicitatievraag bij iRhythm Technologies

How would you detect a button press using a microcontroller?