Pergunta de entrevista da empresa Two Sigma

Some question related to arrays.