Ishi Systems Interview Question

why do we need to override equals if we override hashcode