Allscripts interview question

how you understand scoping/loops