A cipher is a cryptosystem where the encoding and decoding is done
character-by-character, as opposed to being done on words, phrases, or blocks
of 1024 characters. From undercover agent Artemov, you know that EGOP failed to
study any computer science and, fortunately, chose one of the simplest
cryptosystems: a substitution cipher. A substitution cipher, or
mapping/permutation, changes each character to another character. For example,
in Section 2.2, EGOP's substitution cipher exchanges each letter of the English
alphabet with the ``next'' letter. Note that 'Z' ``wraps around'' to 'A'. The
notation 'A'
'B' means, ``'A' maps to 'B''',
which also means, ``replace each
'A' with 'B'''. You must follow two rules with a substitution cipher: