Riser Techub interview question

how does event loop work