Netcompany interview question

How does hash code works?