EPAM Systems interview question

Create a SQL to solve one specific problem