Cognizant Interview Question

Create a bubble sort algorithm.