Sponsored
Use these hints if you're stuck. Try solving on your own first.
For each year find the number of people whose birth_i ≤ year and death_i > year.
Find the maximum value between all years.
Solve with full IDE support and test cases