Pregunta de entrevista de Intel Corporation

Given an array containing duplicates, return array with no duplicates