Concept Flow - For loop with index (withIndex)
Start with collection
Get first element and index
Execute loop body with element and index
Get next element and index
More elements?
No→Exit loop
↩Back to Execute loop body
The loop goes through each item in a collection, giving you both the item and its position (index) to use inside the loop.