Delete all elements in the array that are greater than 5.
[3, 4, 6, 7, 8]
Here is a modified version of the input array after deleting all elements that are greater than 5:

[3, 4]
Complete the following task based on the instruction and optional input provided.### Instruction:
Delete all elements in the array that are greater than 5.

### Input:
[3, 4, 6, 7, 8]

### Output:
Here is a modified version of the input array after deleting all elements that are greater than 5:

[3, 4]