Cognizant interview question

Write a code on bubble Sort