EPAM Systems Interview Question

Intermediate written test for a generic problem.