Two Pointer Leetcode Problems