Two Pointer Questions Leetcode