Capgemini Interview Question

Hoisting in JavaScript, scope and scope chaining