The Solution.
The number of codes for the first digit = 5
The number of code of the second digit = 10
The number of code of the third digit = 10
The number of code of the four-digit = 9
So,
The number of possible codes is
6.5m questions
8.6m answers