So I have a set containing the endpoints of intervals. For example,
Set s = {(1,4),(3,7),(5,8),(14,17),(0,2),(11,14)}
I need a way to find out