Two Pointers Leetcode Questions