DXC Technology Interview Question

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