Canva Interview Question

Explain why you need to override the hashcode and equals.