Larsen & Toubro Interview Question

Explain about bubble sort and it's working?