rosettacode bulls and cows game