Topic: Array Problem / Level: intermediate

Problem: Rearrange an array such that every element is smaller than or equal to the sum of its neighbors.

Run the code to see the output here...