Question d’entretien chez Knab

String rearrangement problem without using any built-in sorting functions