Cvent Interview Question

hash map question with string comprehension