Pregunta de entrevista de Comcast

How to print unique elements in array?