Xoriant interview question

how do u calculate hashcode