Yelp Interview Question

Reduce a 2D array where you need to sum the same elements and return them sorted by amount