Sliding Window Algorithm Leetcode Rating