Intel Corporation Interview Question

Given an array containing duplicates, return array with no duplicates