LeetCode
Largest Values From Labels
Click
here
for an explanation.