iO Interview Question

Explain how the event loop works.