Two Sigma interview question

Basic programming questions