Pegasus InfoCorp interview question

how event loop works?