Pergunta de entrevista da empresa IBM

Basic JS question for prototype, closure, variable swapping