Reltio interview question

remove duplicate entry in an array