Antra interview question

coding question about the map and follow up