Domanda di colloquio di Fidelity Investments

how would you implement bubble sort