EPAM Systems interview question

Technical interview was a Problem-solving interview