Topic: Array Problem / Level: intermediate

Problem: Rearrange an array such that the first half is sorted in ascending order and the second half is sorted in descending order.

Run the code to see the output here...