Cognizant interview question

write a code to sort an array with each value entered simultaneously.