Cognizant interview question

Sort an array in java without using Arrays.sort() .