Nagarro interview question

hashmap java 8 modifications