can someone give any hint how to approach https://cses.fi/problemset/task/2169 this problem ? I've tried sorting the starting points and the ending points and tried to observe if somehow I can merge them , but couldn't find any way . Will some special data structure need for this problem ?