Pregunta de entrevista de Amazon

for my OA I needed for loops in python