Qualcomm Interview Question

merge sort and quick sort and their code