UBS interview question

HashMap programming question in java