Go simple
```\nfunc maximumPopulation(logs [][]int) int {\n    yearSet := make(map[int]int)\n    ans := math.MaxInt\n    for , v := range logs {\n        yearSet[v[0]] = 
```\nfunc maximumPopulation(logs [][]int) int {\n    yearSet := make(map[int]int)\n    ans := math.MaxInt\n    for _, v := range logs {\n        yearSet[v[0]] = 0\n        yearSet[v[1]] = 0\n    }\n    \n    for k := range yearSet {\n        for _, v := range logs {\n            if k >= v[0] && k <= v[1]-1 {\n                yearSet[k]++\n            }\n        }\n    }\n    \n    maxPopulation := 0\n    for year, population := range yearSet {\n        if population > maxPopulation {\n            maxPopulation = population\n            ans = year\n        } else if population == maxPopulation && year < ans {\n            ans = year\n        }\n    }\n    \n    return ans\n}
['Go']