rosetta code guess the number