Two Sigma interview question

Some coding questions, cannot disclose specifics