Correct way of passing in a map of key: int, value: array string