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
5.3m questions
6.9m answers