3210. Find the Encrypted String
You are given a string
sand an integerk. Encrypt the string using the following algorithm:
- For each character
cins, replacecwith thekthcharacter aftercin the string (in a cyclic manner).Return the encrypted string.
1 | class Solution { |