Cognizant interview question

Create a bubble sort algorithm.