Cognizant interview question

Was asked to hard code bubble sort