Ruby function to return the poker hand represented by 5 cards