iO interview question

Explain how the event loop works.