encryptMap and decryptMap) and a Trie (trieRoot).encryptMap with keys as keys and values as values.decryptMap with values as keys and sets of corresponding keys as values.dictionary and add it to the Trie.word1, look up the encrypted value in encryptMap, and concatenate the results.word2 against the Trie, and count the number of valid strings that match words in the dictionary.