Disruptor Beam Interview Question

Remove duplicates from array