EPAM Systems interview question

JavaScript scope