Wells Fargo Interview Question

Why we need override hashcode and equals method etc