Cognizant Interview Question

Hoisting, closures and questions based on them