Nagarro interview question

Why override hashcode and equaks