Cognizant interview question

Explain bubble sort and quick sort