UBS Interview Question

HashMap programming question in java