Counting with repetition, with order mattering solve the below question (you can use the above method) question:

Related Book For  answer-question
Posted Date: