Pergunta de entrevista da empresa EPAM Systems

Working code for simple python question is expected