Intuit interview question

LeetCode Medium-level question that required a sliding window approach