Pergunta de entrevista da empresa Goldman Sachs

tries and a question on arrays