VIT Infotech Interview Question

Write a program to sort an array using bubble sort.