Morgan Stanley interview question

Customized object as HashMap key