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.
for example ,if the input were
@[@"dog",@"cat",@ "dog",@"fis h"]
the output would be
@[@"dog",@"cat",@ "fish"]
for example ,if the input were
@[@"dog",@"cat",@ "dog",@"fis h"]
the output would be
@[@"dog",@"cat",@ "fish"]
Comment