Question d’entretien chez EPAM Systems

In this code snippet, implement the Dependency Inversion concept (D from SOLID).