Question d’entretien chez Becrypt

Without looking online, but providing a mathematical description, implement bubble sort