Two Sigma Interview Question

Explain your thinking process clearly.