WebMD Health interview question

question on bubble sort was asked