Two Sigma interview question

Java coding questions