Let's consider the code that solves the Bulls & Cows problem. What can we learn from it?
Create a four digit random number from the digits 1 to 9, without duplication.
The program should:
- ask for guesses to this number
- reject guesses that are malformed