Two Sigma Interview Question

Friend circle.