Deloitte interview question

Sort a particular array using bubble sorting.