#K3736. Shift String
Shift String
Shift String
Given a string that consists of only lowercase English letters and spaces, your task is to shift each letter to the next letter in the alphabet. When the letter is 'z', it should wrap around to 'a'. Spaces should remain unchanged.
Note: The input string will only contain lowercase alphabets and space characters.
For example, if the input string is abcdefghijklmnopqrstuvwxyz
, the output should be bcdefghijklmnopqrstuvwxyza
.
inputFormat
The input consists of a single line that contains a string with only lowercase alphabets and spaces.
outputFormat
Output a single line representing the shifted string.## sample
abcdefghijklmnopqrstuvwxyz
bcdefghijklmnopqrstuvwxyza