Fidelity Investments Interview Question

bubble sort