4i Apps Interview Question

Sort the array in ascending order