Topic: Array Problem / Level: intermediate

Problem: Check if an array can be rearranged such that every element is smaller than the element that follows it using a sorting technique.

Run the code to see the output here...