AKUNA CAPITAL interview question

Remove duplicates of an array