Topic: Array Problem / Level: intermediate

Problem: Check if an array can be rearranged into a zigzag pattern such that arr[0] ≤ arr[1] ≥ arr[2] ≤ arr[3]…

Run the code to see the output here...