Two Pointer Algorithm Questions