Question d’entretien chez EPAM Systems

How to solve this specific problem