Fidelity Investments Interview Question

how would you implement bubble sort