Microsoft interview question

Output unique values of a sorted array.