Why does the two-pointer pair-sum method need the array to be sorted? | Two Pointers and Sliding Window question · AnyPrep