Two Pointer Sliding Window Leetcode Question