Amazon Interview Question

Questions about hashmap, regex, and arrays