AKUNA CAPITAL interview question

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