Two Sigma interview question

Easy algo/math questions