Nagarro Interview Question

hashmap java 8 modifications