Two Sigma Interview Question

Some question related to arrays.