Frage im Vorstellungsgespräch bei Vrbo

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