Here is the output array, with the duplicates removed: [3, 5, 8, 9, 4]
Array: [3, 5, 8, 8, 9, 5, 4]
### Instruction:
Remove the duplicates from the given array.

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

### Response:
