Cognizant interview question

sort an arrray in increasing order