HCLTech interview question

explain how event loop works