Impelsys interview question

bubble sort