peel-works interview question

How Hashmap, HashSet internally work?