You have a key-value pair given:
"Adsddf" : ?
"ds?xsc" : :
"csdcs:" : #
...n items.
The goal is to decompress a string : Example : String: "ac3d:cs?" will translate to : ac3ddsAdsddfxsccsAdsddf
Basically in place substitution for every character.
What is the best algorithm to achieve this?