Vrbo interview question

Find all unique values of a sorted integer array using only primitives.