L&T Technology Services Interview Question

How to write interrupt handler?