Pergunta de entrevista da empresa Intel Corporation

Given an array containing duplicates, return array with no duplicates