Wipro interview question

Explain bubble sort algorithm