Tech Mahindra Interview Question

he asked me to sort an array using an alogorithm and explain that alogrithm