Alior Bank interview question

HashCode and equals. Why do you need hash code?