Cognizant Interview Question

Write a program to sort an Array