Pergunta de entrevista da empresa Intel Corporation

Sort an array of numbers in different versions