Squarepoint Capital Interview Question

leetcode medium question (<1400cf difficulty)