Groupon Interview Question

String, int and map were encrypted in some rules. The question is to decrypt a string based on those rules and return a map. Should write helper functions and keep calling them as looping through the string.