PTC Interview Question

how hashmap works? some puzzle.