DyfoLabs interview question

Embedded C question: On press of a button an LED should blink thrice, write a c program for a microcontroller with a button as input and LED as output.