ClearScore Interview Question

Is there a contract between equals and hashcode?