Frage im Vorstellungsgespräch bei Quorum

How to remove duplicates from an array How can we optimize it?