Pregunta de entrevista de Cognizant

What is the method behind bubble sort