EPAM Systems Interview Question

Well, the last tech task was mostly the only thing to think about.