Two Pointer Sliding Window Leetcode Question 5