UKG interview question

Sort an array in a specific order.