text and an integer step. Encode it as follows: every character is replaced by the character that sits step positions to its right in the **original** string. The string is treated as a ring: once you pass the end, counting continues from the beginning.
Return the encoded string.text='lamp', step=1 → 'ampl'
Each letter is replaced by the next one: l → a, a → m, m → p, and for the last letter p we wrap around to the start and take l.
text='code', step=6 → 'deco'
A step of 6 in a string of length 4 is the same as a step of 2: c takes d, o takes e, d takes c, e takes o.
text='zzz', step=5 → 'zzz'
text consists of lowercase English letterstext='lamp', step=1
'ampl'
Run checks the first 3 tests in your browser. Submit checks all 88 tests on the server, hidden ones included.