Pregunta de entrevista de WebMD Health

question on bubble sort was asked