Frage im Vorstellungsgespräch bei Cognizant

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