Virtusa Interview Question

Explain bubble sort algorithm with example.