Pergunta de entrevista da empresa Critical TechWorks

I was asked to create a function that sorts an array of numbers in ascending order.