Pregunta de entrevista de Wells Fargo

Why we need override hashcode and equals method etc