Hexaware Technologies interview question

Write a program to sort an array.