EPAM Systems Interview Question

Technical questions and simple algorithmic task, was need to describe solution