Hitasoft interview question

Remove duplicated elements in array