Cognizant interview question

Explain the Bubble sort algorithm