Accenture interview question

sort an array using bubble sort