Ok now my take seems to be completely different on this one. Plz point out the flaw if any:
Since there are 5 numbers in a given code and there are 5 numbers, I think the total posssible codes are: 5*5*5*5*5 = 3125. No where in the question does it say that you are not allowed to repeat the same digit in the code.
Now since the codes can be repeated, 3125 is the number of code possible without combination. We will have to add this figure to the one possible with combination.
Now to select 3 codes out of 3125, we should use the combination formula. C(3125, 3). Now this yields a huge figure ( 3123*3124*3125)/6
This should be added to the prev figure, ie, total possibilities:
3125 + ( 3123*3124*3125)/6.
Now my concern is the magnitude of the solution. Rarely do I see such an insane answer.
Please provide the official answer and if someone can point out any flaw in the reasoning above, please let me know.