Question d’entretien chez Revolut

Given a Counter class, override equals and hashcode method so that you get equality.