Intel Corporation interview question

Given an array containing duplicates, return array with no duplicates