Cornerstone OnDemand interview question

How does hashmap work and how is collision handled?