Pergunta de entrevista da empresa WebMD Health

question on bubble sort was asked