Topic: Array Problem / Level: intermediate

Problem: Check if an array can be rearranged such that all positive numbers are followed by all negative numbers without changing the relative order.

Run the code to see the output here...