Pergunta de entrevista da empresa EPAM Systems

Find problems in a presented code sample and try to refactor it