Problem : Sherlock and Ciphers
Given an array A and string S, swap ith and A[ith] character of S in order 1 to N.
This is a straightforward implementation problem.
For each test case, you need to read N (size of string and array) and then string S and finally array A.
Now iteratively,you need to traverse the array starting from 1 to N and swap the ith and A[ith] character in S.
The indices of A are 1-based. If someone is implementing 0-based index then he needs to swap the characters accordingly.
Author’s Solution can be found here