BlackRock interview question

write bubble sort algorithm