Count Ways to Group Overlapping Ranges
Ranges that share a point must stay together, so merge them into components; each component can go either way.
Ranges that share a point must stay together, so merge them into components; each component can go either way.