Rubikal Interview Question

Closure for loop js question?