Thanks everyone for your help in understanding this. I understand this better from the mathematical concept of factorial.