Hexaware Technologies Interview Question

Write a program to sort an array.