Cognizant interview question

bubble sort algorithm in cpp