HSBC interview question

Explain bubble sort