Optum interview question

Some leetcode question using hashmap