Given an array of intervals, find the minimum number of intervals you need to remove to make the rest non-overlapping.
For example, with intervals , you remove to get three non-overlapping intervals. This is the flip side of activity selection. Instead of counting how many you can keep, you count how many to remove. Think about how these two perspectives connect. The math: if you keep out of , you remove .