MathCo Interview Question

extract unique elements from the given array