You are given a string s and an integer k. Encrypt the string using the following algorithm:
For each character at index i in s, replace it with the character located
Return the encrypted string.
Constraints:
s.length
k
s consists only of lowercase English letters.
You are given a string s and an integer k. Encrypt the string using the following algorithm:
For each character at index i in s, replace it with the character located
Return the encrypted string.
Constraints:
s.length
k
s consists only of lowercase English letters.