Secret Message
Description
You write all your passwords in a diary so that you don't forget them. But clearly this is too risky, so you came up with a simple plan, you will simply write it by shifting all the alphabets by a certain step. For eg: if you decide your step to be 3, then 'a' will become 'd', and 'k' will become 'n' and so for all alphabets. The last alphabets will simply circle back to 'a'. In this case, 'y' will become 'b' and so on. Now you just have to remember the step size, can then you can check the password anytime you want. You decided to write code to do this, now that you have learned coding in python. Your code will take in the step size and what is written in the diary and give out the real password.
----------------------------------------------------------------------
Input:
A list of two elements.
The first element will be a string consisting of only alphabets which is taken from the diary and the second element will be the step size.
Output:
A string denoting the password
----------------------------------------------------------------------
Sample input:
['ytKveh' 4]
Sample output:
upGrad
Explanation:
The password was 'upGrad'. Upon changing it by step of 4,
u became y,
p became t,
G became K,
r became v,
a became e,
d became h,
and thus what was written in the diary was ytKveh
----------------------------------------------------------------------
Sample input:
['banana', 7]
Sample output:
utgtgt
Execution time limit
Default.