Nutanix interview question

One programming question on maps.