Squarepoint Capital interview question

leetcode medium level and stat questions