Microsoft interview question

How to build a HashMap