Remove the duplicates from the given array.
Array: [3, 5, 8, 8, 9, 5, 4]
Here is the output array, with the duplicates removed: [3, 5, 8, 9, 4]
Complete the following task based on the instruction and optional input provided.### Instruction:
Remove the duplicates from the given array.

### Input:
Array: [3, 5, 8, 8, 9, 5, 4]

### Output:
Here is the output array, with the duplicates removed: [3, 5, 8, 9, 4]