Implement the cipher map problem.