UBS interview question

now "LOOP" syntax is MUST!!!!