Walmart Global Tech interview question

Design a decoder and coder (cypher style) use maps.