Pregunta de entrevista de IBM

Basic JS question for prototype, closure, variable swapping