Autodesk interview question

Please write the code for the bubble sort algorithm