Applied Systems interview question

bubble sort