Pregunta de entrevista de mthree

Asked to implement a sorting algorithm for an array of unsorted numbers.