OKG interview question

asked to implement a hash map