HSBC Interview Question

iterate over map