Fidelity Investments interview question

bubble sort