Two Pointer Sliding Window Leetcode Question Tree