Comcast Interview Question

How to print unique elements in array?