Domanda di colloquio di IBM

Basic JS question for prototype, closure, variable swapping