Capgemini interview question

How does the bubble sort work. Write down the code