Joveo interview question

Hashmap vs treemap, How to handle collisions