Pergunta de entrevista da empresa Cognizant

What is the method behind bubble sort