Tavant interview question

Hash map working