Xoriant Interview Question

how do u calculate hashcode