BT Group interview question

Equals and Hashode implementation.