Marvell Technology Interview Question

C coding of sorting an array and it's explaination