Pregunta de entrevista de AKUNA CAPITAL

Given an array, return a new array with all the unique elements.