Two Sigma interview question

Typical algorithm/design questions.