Add some printlns or watch the variables in a debugger to see where things go unexpected

According to the given input/output it seems the code is not correctly translating the letter 'e' or the...