Infosys Interview Question

Quick sort and merge sort explanation