Topic: Array Problem / Level: intermediate

Problem: Check if the array can be rearranged such that every element is greater than its immediate previous element.

Run the code to see the output here...