WebMD Health Interview Question

question on bubble sort was asked