Pergunta de entrevista da empresa FDM Group

They asked me to sort an array in ascending order