Topic: Array Problem / Level: intermediate

Problem: Rearrange an array such that every even-indexed element is smaller than the odd-indexed element.

Run the code to see the output here...