UKG Interview Question

Sort the elements of an unsorted array in descending order