ServiceTitan interview question

Implement a custom dictionary where one key can be mapped to multiple generic values