Squarepoint Capital interview question

Standard leetcode and quant brainteasers