More intuitive Java code
\nclass Solution {\n    public int maximumPopulation(int[][] logs) {\n        int[] countArr = new int[2051];\n        int res = 0;\n        for (int[] log : lo
```\nclass Solution {\n    public int maximumPopulation(int[][] logs) {\n        int[] countArr = new int[2051];\n        int res = 0;\n        for (int[] log : logs) {\n            for (int i = log[0]; i < log[1]; i++) {\n                countArr[i]++;\n            }\n        }\n\n        for (int i = 1950; i < 2050; i++) {\n            if (countArr[res] < countArr[i]) {\n                res = i;\n            }\n        }\n\n        return res;\n    }\n}\n\n```
['Java']