Question d’entretien chez ByteDance

Coding question: a sorted array and take out the unique elements.