Friendsurance interview question

How many ways are there to implement hashcode?