Pregunta de entrevista de Metafic

remove duplicates from an array solve using javaScript