Citi interview question

Sorting algorithms - heap sort and merge sort