Two Sigma Interview Question

It was a coding question..