XYZ interview question

write a program for bubble sort?