I need to get the inverse of the permutation string.
I was able to get the returned letter D from the string ***B* but I'm not sure how to put it back into the string using an array.
Declare an array of characters of size the length of the alphabet.
- Scan each character of the permutation string
- Find the position of the scanned character in the alphabet
- At this position in the array store the character whose position in the alphabet
is the position of the scanned character in the permutation string
- Declare an empty string
- Push back all array elements in this string
- Return this string