AKUNA CAPITAL Interview Question

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