Sliding Window Algorithm Technique