Sort an array into two halves, one half ascending and second half descending Command Line Language

Please provide the answer in comments for this program

Prepare Better for Placement Papers