Problem 2347 · Easy
Check for a flush first, then grade the hand by the largest number of cards that share a rank.
Open the interactive visualisation