JAVA O(n)
Note: So the logic is to increment the every year value if there is someone born.\nfor example if someone birth year and deadth year is 1950,1962 then the year 
Note: So the logic is to increment the every year value if there is someone born.\nfor example if someone birth year and deadth year is 1950,1962 then the year from 1950 to 1961 will have count of 1 this will identify the no of persons present in a particular in this way the value of every year will vary based on the birth year and deadth year and at the end the year having maximum count will have maximum popullation.\n\n\n\n\npublic int maximumPopulation(int[][] logs) {\n        int[] years=new int[101];\n        int max=0,ans=1950;\n        for(int[] a:logs){\n            for(int i=a[0];i<a[1];i++){\n                years[(i)-1950]++;\n            }\n        }\n        for(int i=0;i<years.length;i++){\n                if(years[i]>max){\n                    max=years[i];\n                    ans=1950+i;\n                }\n        }\n        return ans;\n    }
['Java']