Infosys interview question

efficient bubble sort