In the heap sort, Min heap or max heap is maintained from the array elements
depending upon the choice and the elements are sorted by deleting the root element of the heap.
Merge sort follows divide and conquer approach in which, the list is first
divided into the sets of equal elements and then each half of the list is sorted by using merge sort.