Visa Inc. Interview Question

Leetcode medium - sliding window