Infosys Interview Question

Explain Bubble sort program, logic or algorithm