Z-Crossing Solutions interview question

purpose of using interrupts in microcontroller