Pregunta de entrevista de Bloomberg

Given a function cipher(c) that takes a char and returns it's encryption (another char), write two functions: one to encrypt a string and one to decrypt it (takes the encrypted string and returns the original)