HSBC interview question

how get method works in hashmap