Allscripts Interview Question

how you understand scoping/loops