Poker hands. Coding exercise