Overlapping intervals and the amount of overlaps
问题 This question might be similar to others but is a bit different. Let's say we have a set of intervals that goes like this let's say A-9 are numbers but for the sake of formatting I used letters): <-a---> <------c---> <------------MAIN> ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 <--d-> <--b-------> So we have the Main interval which goes from I to Z , the interval a that goes from M to S and so on. Now I want to have the intervals where I have the most overlaps WITHIN the main one (which is