DXC Technology Interview Question

Explain event loop with example.