Question d’entretien chez Altisource

Sorting a array of int with out using second loop.