Check Out My YouTube Channel
Algorithm Challenge Available At CodeFights
Define an alphabet reflection as follows: a turns into z, b turns into y, c turns into x, ..., n turns into m, m turns into n, ..., z turns into a.
Define a string reflection as the result of applying the alphabet reflection to each of its characters.
Reflect the given string.
Example
For inputString = "name", the output should be reflectString(inputString) = "mznv".
Hints
- split()
Input/Output
- [execution time limit] 5 seconds (ts)
- [input] string inputString
A string of lowercase characters.
Guaranteed constraints:
3 ≤ inputString.length ≤ 10.
- [output] string