Topic: Array Problem / Level: intermediate

Problem: Rearrange an array into a zigzag pattern such that a < b > c < d and so on.

Run the code to see the output here...