Brute Force: Right Shift
An upper-case character A is given. Shift character K times towards its right. Print the final character.
Note
Shifting "Z" by one will lead to "A" and so on.
A belongs to [A-Z].
Function Description In the provided code snippet, implement the provided rightShift(...) method using the variables to print the final character. You can write your code in the space below the phrase “WRITE YOUR LOGIC HERE”.
There will be multiple test cases running so the Input and Output should match exactly as provided. The base Output variable result is set to a default value of -404 which can be modified. Additionally, you can add or remove these output variables.
Input format
The first line contains character A and integer K.
Constraints 1 <= K <= 100
Sample Input A 1 -- denotes the character A and the integer K.
Output format The output contains the character after shifting it K times.
Sample Output B
Explanation Shifting A by 1 will lead to B. Hence, the output is B.