OmniPay Interview Question

Write a program on ascending order for array of elements