EPAM Systems interview question

Online coding session with two developers.