Riser Techub Interview Question

how does event loop work