Cognizant Interview Question

What is the method behind bubble sort