Sort first half in ascending and second half in descending

Problem Name:
Sort first half in ascending and second half in descending
Site:HackerEarth
Links:
Tags:
Problem setters: