Cognizant Interview Question

Was asked to hard code bubble sort