Two Pointer Question Leetcode