Domanda di colloquio di DP World

Rearrange array such that elements greater ar towards right and smaller toward left