Shift each character by 1 (e.g., "abc" → "bcd").
Difficulty: Medium
Phase: 5 · Strings
XP Reward: 20 XP
Topics: Strings, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Shift each alphabetic letter forward by 1 in the alphabet (z wraps to a, Z wraps to A). Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: abcXYZ
Output: bcdYZA
Explanation: Sample execution for input abcXYZ