LinkedIn Interview Question

sliding window leetcode medium question