Topic: Array Problem / Level: beginner

Problem: Replace all elements greater than a given value x with x in an array.

Run the code to see the output here...