Infosys Interview Question

how hashmap works?