Autodesk Interview Question

Please write the code for the bubble sort algorithm