Sliding Window Algorithm Leetcode Sql 50