Encryption vs Decryption

0

0 votes
Problem

Neelu and Cherry are friends. Neelu wants to send a message to Cherry but Hacker wants to know the message sent by Neelu to Cherry. So Neelu sends the message in encrypted form with a key.Help Cherry to find the original text sent by Neelu. Cherry can decrypt the message using Subtraction operation

 

Input:

lipps - Message

4 - key

Output:

Hello

Explanation:

l - 4 = h

i – 4 = e

p – 4 = l

p – 4 = l

s – 4 = o

 

 

 

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?