PTC interview question

how hashmap works? some puzzle.