Cognizant interview question

Sort this array using java