Pregunta de entrevista de Mphasis

Gave an example and asked to tell output. That question was based on JavaScript hoisting concept