Pregunta de entrevista de Nagravision

to store unique elements in an array by using streams