Pergunta de entrevista da empresa Block

they wanted a bunch of for loops in python