C5i Interview Question

Explain for loop and related coding question