How is this nested for loop working!

Printable View