
function out=q5(plain)
   plain=plain-65;
   cypher(1)=plain(1);
   for k=2:length(plain)
      cypher(k)=mod(plain(k)-cypher(k-1),26)
   end 
   out=cypher
   char(out+65)
return
