Question d’entretien chez Odessa

What is the logic for selection and insertion sort?