Infosys interview question

Explain bubble sort in programming.