Google interview question

How do you implement a hash?