Pregunta de entrevista de MSCI

Sort array using bubble sort with two and one for loops.