It is hard and the condition of repeat of number should be clear if you have formula ( it is obvious to have) you can use that.
Answer:
totally 16 numbers can be formed
4.6m questions
6.0m answers