Costco Travel interview question

Revert array of objects in descending order