Pergunta de entrevista da empresa Cognizant

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