Cognizant interview question

write a program to sort an array