C Program to print permutations of a string

Permutations Permutations is the set of all different unique arrangements of the letters of the string. So for the string “ABC” there are 6 permutations – ABC, ACB, BAC, BCA, CAB, CBA. The permutations can also be taken on a smaller length. For example if we want to get permutations