Descriptions:

Subarray Sorting

CodeForces - 1187D