Cognizant Interview Question

Write a program for Bubble sorting an array