Dynetics interview question

Describe how bubble sort works