I want an algorithm which would give me all the combinations possible with the given numbers. (ie)
for ex: if i give 1,2,3 , it should print all the possible combinations that can be made with those three digits (i.e) 123, 132, 213,231,312,321.
for 1,2,3,4.. it is 4123, 4132...