Vrbo Interview Question

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