DXC Technology interview question

Explain event loop with example.