Pregunta de entrevista de Accenture

Question on python and coding