Pregunta de entrevista de Sears

How does a bubble sort work?