Burger King

Suppose, you are working as Software Engineer at Whatsapp. Whatsapp development team has decided to encrypt the message of user texts. And you have to do the task. The encryption algorithm is to encrypt the uppercase/lowercase letter to its next letter. For example, If the input is ‘a’ output will be ‘b’. If the input is ‘B’ output will be ‘C’. For other characters from ‘c’ or ’C’ to ‘y’ or ’Y’, output will also be the very next letter. But in case of ‘z’ or ‘Z’, output will be ‘a’ or ‘A’ respectively. You will take a string as input and encrypt the string.

Avatar

James is the Founder and Editor of The Versatile Gent.

Leave a Reply

Your email address will not be published. Required fields are marked *