I taste some changes in the code but I still can`t get the output as I need.

A is caracter on the first pace, B is on the second, C in on the thirdth....
The caracters should not change their places, I need the combinations of them without changing their places.

Pls help me about it, I need to complete this goal as soon as it possible