5x5 Technologies interview question

Remove duplicates from an array.