Two Sigma interview question

Statistics, programming, and brain teaser questions.