Basis Technologies Interview Question

Delete duplicates in a sorted array