Nagarro Interview Question

Why override hashcode and equaks