PRAMP Question — Decrypt Message
Problem Statement
Messages consist of lowercase Latin letters only, and every word is encrypted separately as follows:
Convert every letter to its ASCII value. Add 1
to the first letter, and then for every letter from the second one to the last one, add the value of the previous letter. Subtract 26
from every letter until it is in the range of lowercase letters a-z
in ASCII. Convert the values back to letters.
For instance, to encrypt the word “crime”