guess the number rosettacode