Qualcomm interview question

How do interrupts work in a microprocessor