Cognizant interview question

Write a program to sort an Array