Goldman Sachs Interview Question

Hashcode and equal function implementation in java hashmap