Apple interview question

easy string and hashmap type question.