Apple Interview Question

easy string and hashmap type question.