Question d’entretien chez RBC Investor Services

Bubble Sorting algorithm in Python? How can you optimize the code?