Hitasoft Interview Question

Remove duplicated elements in array