Pregunta de entrevista de EPAM Systems

Working code for simple python question is expected