WebMD Health interview question

Sorting array using bubble sort