Two Pointer Approach Medium