EPAM Systems interview question

Synchonization and safety class