Code a function that receives an array with duplicates and returns a
new array keeping the original order of the elements but with the
duplicates removed.