problem: (D) Permutations Solution in C/C++ Archive