Pregunta de entrevista de Snapwiz

To sort an array with a single loop.