CureMD interview question

Remove duplicates from array and return true or false come?