Two Pointer Leetcode Questions