Question 3
A digital lock opens as soon as its unique correct four-digit combination is entered; repeated digits are allowed. For example, typing 000125 opens it if the code is 0001, 0012 or 0125. Little Pierre does not know the code. What is the minimum number of digits he must type to guarantee that the lock opens?