Microsoft interview question

sort the arrays by using bubble sort