Infosys interview question

Sort algorithm : bubble sort