Sliding window technique — how it solves substring/subarray problems · InterviewLane