Pergunta de entrevista da empresa EPAM Systems

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