Pergunta de entrevista da empresa Fidelity Investments

how would you implement bubble sort