Pregunta de entrevista de EPAM Systems

About the code made in the second round?