Revolut Interview Question

hashCode() and equal() contract and modify code class to make possible the assertion