Pregunta de entrevista de Two Sigma

Typical algorithm/design questions.