EPAM Systems interview question

about Javascript hoisting and related examples