Variable Size Sliding Window Algorithm Leetcode Sql Queries W3schools