Pergunta de entrevista da empresa Bridgenext

Write a program to arrange all the elements of array in ascending order. Do not use any prebuilt functions, only use loops.