Pregunta de entrevista de Motive

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