EPAM Systems interview question

Problem solving on Javascript hoisting.