Variable Size Sliding Window Algorithm Leetcode Playground C