function K = crack(trainer, mystery)
%CRACK cracks the substitution cipher
%  trainer = name of the file containing plaintext to be used to "train" 
%            the system to crack the cipher.
%  K = the substitution cipher key obtained after a frequency analysis of
%      the trainer text.
%  mystery = name of the file containing encrypted text to be decrypted
%            using key K.

% YOUR CODE BELOW



% YOUR CODE ABOVE

% Answers to Part D below