iLink Digital Interview Question

How for loop works?