EPAM Systems interview question

A simple coding task and some tricky technical questions, situations.