Coding question · Top N Per GroupHardAsked at Amazon

Second-best seller in each category

Window rank + filter for arbitrary Nth place.

The Brief