Microsoft Interview Question

Output unique values of a sorted array.