UKG Interview Question

Sort an array in a specific order.