Topic: Array Problem / Level: intermediate

Problem: Rearrange an array into a wave-like pattern such that arr[0] ≥ arr[1] ≤ arr[2] ≥ arr[3]…

Run the code to see the output here...