Snapwiz Interview Question

To sort an array with a single loop.