Question 1
It finds the smallest element in D from index s1 to s2, both inclusive.
It reverses the list D between indices s1 and s2, both inclusive
It performs a merge sort in-place on this list D between indices s1 and s2, both inclusive
It swaps the elements in D at indices s1 and s2, and leaves the remaining elements unchanged.