UKG interview question

Sort the elements of an unsorted array in descending order