Disruptor Beam interview question

Remove duplicates from array