Infosys interview question

implementation of Hashmap