EMC2 interview question

Sort an array, Quick Sort, Bubble Sort, Calculate height of tree