Pregunta de entrevista de Fidelity Investments

how would you implement bubble sort