Pregunta de entrevista de Apple

How would you sort an array in-place?