OfBusiness interview question

Sorting of an array using loops