Nagravision interview question

to store unique elements in an array by using streams