EPAM Systems interview question

Some design patterns question