Given intervals [start, end), return the minimum number of intervals to remove so the rest don't overlap (touching endpoints don't overlap).
Input
n 2start endOutput: the minimum removals.
4 2 1 2 2 3 3 4 1 3
1
Remove [1,3].
3 2 1 2 1 2 1 2
2
2 2 1 2 2 3
0
Run your code against the sample tests, or Submit to run the full suite.