Chainalysis interview question

A 1 hour coding question which can be used as HashMap.