Nutanix Interview Question

One programming question on maps.