Comcast interview question

some challenges using Hashmaps