Two Pointer Algorithm Leetcode