Domanda di colloquio di Motive

A question to filter out duplicates from an array using JS.