Two Pointers

Finding solutions using monotonicity