A typical combination lock will open only after its dial has been moved to the three numbers of the combination in the correct order. For example, with the combination "6-12-30"
In the progam we will ignore the details of rotation. The lock will open when the user has entered the correct three numbers in sequence.
After you have entered a number does the lock immediately tell you if it is wrong number?