Salesforce interview question

Sorting random numbers