Pergunta de entrevista da empresa DXC Technology

Arrange a sequence of numbers in ascending order without any inbuilt functions(full code)